home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World Komputer 2010 April
/
PCWorld0410.iso
/
pluginy Firefox
/
1833
/
1833.xpi
/
chrome
/
yoono.jar
/
content
/
yoono
/
bookmarks
/
placesOverlay.js
< prev
next >
Wrap
Text File
|
2009-12-16
|
1KB
|
43 lines
/*
* placesOverlay.js
*
*/
Components.utils.import("resource://yoono/yoonoService.js");
Components.utils.import("resource://yoono/yoonoBkmSync.js");
Components.utils.import("resource://yoono/yoonoLog.js");
const YNPREFBRANCH = Components.classes["@mozilla.org/preferences-service;1"].getService(Components.interfaces.nsIPrefService).getBranch("extensions.yoono.");
Components.utils.import("resource://yoono/yoonoDialogs.js");
var privateMarker = 'yoonoPrivate';
function log(m) {
var console = Components.classes["@mozilla.org/consoleservice;1"].getService(Components.interfaces.nsIConsoleService);
console.logStringMessage(m);
}
function init() {
// Overload nsITreeView to display private icons
PlacesTreeView.prototype.officialGetCellProperties = PlacesTreeView.prototype.getCellProperties;
PlacesTreeView.prototype.getCellProperties = function (aRow, aColumn, aProperties) {
this.officialGetCellProperties(aRow, aColumn, aProperties);
var node = this._visibleElements[aRow];
if (node && node.itemId && YOONO_BKM.isPrivate(node.itemId))
aProperties.AppendElement(this._getAtomFor(privateMarker));
};
// Overload controler to display yoono bkm menus
attachYoonoBkmMenu();
}
window.addEventListener("load", function() { init(); }, false);